package cn.wokoba.dao.mapper;



import cn.wokoba.dao.pojo.RuleTreeNode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//规则树节点
@Mapper
public interface RuleTreeNodeMapper extends BaseMapper<RuleTreeNode> {

    @Select("""
            select tree_id, rule_key, rule_desc, rule_value
                    from rule_tree_node
                    where tree_id = #{treeId}""")
    List<RuleTreeNode> queryRuleTreeNodeListByTreeId(String treeId);


}
